package com.letoken.platform.repo.app.req.mall;

import com.letoken.platform.pub.annotation.content.ContentCheck;
import com.letoken.platform.pub.annotation.content.ContentEnum;
import com.letoken.platform.pub.annotation.sms.AccountCheck;
import com.letoken.platform.repo.mall.po.AppMallInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jnr.ffi.annotations.In;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "店铺交易记录", description = "店铺交易记录请求对象")
public class MallPhoneModifyReq implements Serializable {

    @NotNull(message = "80000007")
    @ApiModelProperty(name = "mallId", value = "店铺ID", required = true, example = "1")
    private Integer mallId;

    @NotBlank(message = "80000007")
    @ApiModelProperty(name = "phone", value = "手机号", required = false, example = "13712345678")
    @AccountCheck()
    private String phone;

    @NotBlank(message = "80000007")
    @ApiModelProperty(name = "code", value = "手机号验证码", required = false, example = "1234")
    private String code;

    @ApiModelProperty("国际号")
    //@AccountCheck
    private Integer areaCode;
    @ApiModelProperty(name = "seq", value = "已经验证过旧手机号的标记串,第二部必传", required = false, example = "MOPxxxxxxxxxxxxxxxxxx")
//    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407025")
    private String seq;


    @ApiModelProperty(hidden = true)
    private Integer userId;

    @ApiModelProperty(hidden = true)
    private AppMallInfo ami;



}
